package com.lykj.modules.shop.service;

import com.lykj.modules.shop.entity.UserExtract;
import com.lykj.modules.shop.excel.UserExtractExcel;
import com.lykj.modules.shop.vo.UserExtractVO;
import com.lykj.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.List;

/**
 * 提现表 服务类
 *
 * @author cxl
 * @since 2022-01-21
 */
public interface UserExtractService extends BaseService<UserExtract> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param userExtract
	 * @return
	 */
	IPage<UserExtractVO> selectUserExtractPage(IPage<UserExtractVO> page, UserExtractVO userExtract);

	List<UserExtractExcel> export(UserExtractVO userExtract);

	/**
	 * 获取累计分红总额
	 */
	BigDecimal sumAmount();
	BigDecimal sumUserAmount( Long userAccount);
}
